home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
016a
/
dbreak_c.zip
/
BREAK.DOC
next >
Wrap
Text File
|
1991-02-13
|
722b
|
27 lines
Herein is a set of C callable asm routines to trap CTL-C
CTL-BREAK and CTL-ALT-DEL. The memory model is selected with a
assembler line define: masm -ML -DM_LARGE d_break.asm; see the file
model.inc for additional info. From C the routines are handled as
such:
main () {
int break_flag; /* Flag to test whether CTL-C, CTL-BREAK,
* or CTL-ALT-DEL has been pressed.
*/
break_off (&break_flag); /* Captures the keystokes */
.
.
.
break_on (); /* Resumes normal DOS processing */
}
The routines have been tested and work well with the large memory
model. I've included assembled objects for those of you who don't
have an assembler.
Have fun!